import App from "./App";
import uviewPlus from "@/uni_modules/uview-plus";
import store from "@/store/index.js";
import { createSSRApp } from "vue";
import mixin from "@/utils/mixin.js";
import { request, BASE_URL } from "@/utils/request.js";
export function createApp() {
  const app = createSSRApp(App);
  // 全局方法挂载
  app.config.globalProperties.$request = request;
  app.config.globalProperties.$num = 2;
  app.config.globalProperties.$BASE_URL = BASE_URL;
  app.use(store);
  app.use(uviewPlus);
  app.mixin(mixin);

  return {
    app,
  };
}
